package com.ruoyi.jypc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.boot.autoconfigure.security.SecurityProperties.User;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单总对象 jypc_orders
 * 
 * @author HWJ
 * @date 2022-11-02
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long id;
    
    /** 订单类别 */
    @Excel(name = "订单类别")
    private String type;

    /** 订单名称 */
    @Excel(name = "订单内容")
    private String ordername;

    /** 用户编号 */
    @Excel(name = "用户编号",readConverterExp = "1=张三,2=李四,3=王五")
    private Long userid;
    
    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;
    
    /** 管理员名称(审核这个订单的管理员名称) */
    @Excel(name = "审核员")
    private String adminName;

    /** 订单状态（1为未审核，2为已审核） */
    @Excel(name = "订单状态", readConverterExp = "0=已审核,1=未审核,2=不通过,3=已取消")
    private Long statuss;
    
    //!!!!!			!!!!!		!!!!!

    private com.ruoyi.jypc.domain.User user;
    
    
    
    
    

	
	

	
    
    


    

    
	
    

    

	

	
	 
	public com.ruoyi.jypc.domain.User getUser() {
		return user;
	}

	public void setUser(com.ruoyi.jypc.domain.User user) {
		this.user = user;
	}

	/** 状态（0正常1停用） */
//    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 备注 */
//    @Excel(name = "备注")
    private String remark1;

    /** 备注 */
//    @Excel(name = "备注")
    private String remark2;

    /** 预留字段 */
//    @Excel(name = "预留字段")
    private String y11;

    /** 预留字段 */
//    @Excel(name = "预留字段")
    private String y12;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrdername(String ordername) 
    {
        this.ordername = ordername;
    }

    public String getOrdername() 
    {
        return ordername;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setStatuss(Long statuss) 
    {
        this.statuss = statuss;
    }

    public Long getStatuss() 
    {
        return statuss;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAdminName(String adminName) 
    {
        this.adminName = adminName;
    }

    public String getAdminName() 
    {
        return adminName;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRemark1(String remark1) 
    {
        this.remark1 = remark1;
    }

    public String getRemark1() 
    {
        return remark1;
    }
    public void setRemark2(String remark2) 
    {
        this.remark2 = remark2;
    }

    public String getRemark2() 
    {
        return remark2;
    }
    public void setY11(String y11) 
    {
        this.y11 = y11;
    }

    public String getY11() 
    {
        return y11;
    }
    public void setY12(String y12) 
    {
        this.y12 = y12;
    }

    public String getY12() 
    {
        return y12;
    }

	@Override
	public String toString() {
		return "Orders [id=" + id + ", type=" + type + ", ordername=" + ordername + ", userid=" + userid + ", time="
				+ time + ", adminName=" + adminName + ", statuss=" + statuss + ", user=" + user + ", status=" + status
				+ ", remark1=" + remark1 + ", remark2=" + remark2 + ", y11=" + y11 + ", y12=" + y12 + "]";
	}

	

	/*
	 * @Override public String toString() { return "Orders [id=" + id + ", type=" +
	 * type + ", ordername=" + ordername + ", userid=" + userid + ", time=" + time +
	 * ", adminName=" + adminName + ", statuss=" + statuss + ", status=" + status +
	 * ", remark1=" + remark1 + ", remark2=" + remark2 + ", y11=" + y11 + ", y12=" +
	 * y12 + "]"; }
	 */

	
    
    

   
}
